class Solution(object):
    def angleClock(self, hour, minutes):
        angle_m = minutes * 6
        angle_h = hour % 12 * 30 + minutes * 0.5
        return min(abs(angle_h - angle_m), 360 - abs(angle_h - angle_m))